package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName gkpaperorder
 */
@TableName(value ="gkpaperorder")
@Data
public class Gkpaperorder implements Serializable {
    /**
     * 订单id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    private String number;

    /**
     * 流水号
     */
    @TableField(value = "outTradeNo")
    private String outTradeNo;

    /**
     * 论文ID，对应gkpaper表的id
     */
    private Integer gkpaperid;

    /**
     * 购买人的用户id
     */
    private Integer userid;

    /**
     * 购买人的用户名字
     */
    private String username;

    /**
     * 购买人的内容
     */
    private String gkpapername;

    /**
     * 订单价格
     */
    private Integer price;

    /**
     * 订单生成时间
     */
    private Date createtime;

    /**
     * 1微信支付2支付宝
     */
    private Integer type;

    /**
     * 订单状态
     */
    private Object state;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}